\select@language {danish}
\contentsline {section}{\numberline {1}Introduction}{4}
\contentsline {section}{\numberline {2}Weeder}{4}
\contentsline {subsection}{\numberline {2.1}implementation}{4}
\contentsline {section}{\numberline {3}Scopes and Symboltable - Pass 1 and Pass 2}{5}
\contentsline {subsection}{\numberline {3.1}implementation - General structur}{6}
\contentsline {subsection}{\numberline {3.2}Implementation - 2 pass}{6}
\contentsline {subsection}{\numberline {3.3}Implementation - Check Loop}{7}
\contentsline {subsection}{\numberline {3.4}Implementation - run2GETTYPE (clean type)}{7}
\contentsline {section}{\numberline {4}Calculation of expressions - Pass2}{8}
\contentsline {subsection}{\numberline {4.1}implementation}{8}
\contentsline {section}{\numberline {5}Verification of types - Pass 3}{9}
\contentsline {subsection}{\numberline {5.1}Implementation}{9}
\contentsline {subsection}{\numberline {5.2}Implementation - statement}{9}
\contentsline {subsection}{\numberline {5.3}Implementation - expression}{10}
\contentsline {subsection}{\numberline {5.4}Implementation - term}{10}
\contentsline {subsection}{\numberline {5.5}Implementation - run2COMPARETYPES}{11}
\contentsline {section}{\numberline {6}test}{11}
\contentsline {section}{\numberline {7}Appendix}{14}
\contentsline {subsection}{\numberline {7.1}weed.c}{14}
\contentsline {subsection}{\numberline {7.2}weed.h}{16}
\contentsline {subsection}{\numberline {7.3}run1.c}{16}
\contentsline {subsection}{\numberline {7.4}run1.h}{18}
\contentsline {subsection}{\numberline {7.5}run2.c}{18}
\contentsline {subsection}{\numberline {7.6}run2.h}{28}
\contentsline {subsection}{\numberline {7.7}run3.c}{29}
\contentsline {subsection}{\numberline {7.8}run3.h}{37}
\contentsline {subsection}{\numberline {7.9}typecheck.c}{38}
\contentsline {subsection}{\numberline {7.10}typecheck.h}{38}
\contentsline {subsection}{\numberline {7.11}symbol.c}{38}
\contentsline {subsection}{\numberline {7.12}symbol.h}{42}
\contentsline {subsection}{\numberline {7.13}tree.c}{43}
\contentsline {subsection}{\numberline {7.14}tree.h}{52}
\contentsline {subsection}{\numberline {7.15}rajahscanner.l}{58}
\contentsline {subsection}{\numberline {7.16}rajahparser.y}{60}
\contentsline {subsection}{\numberline {7.17}memory.h}{63}
\contentsline {subsection}{\numberline {7.18}memory.c}{63}
\contentsline {subsection}{\numberline {7.19}tree.h}{63}
\contentsline {subsection}{\numberline {7.20}tree.c}{69}
\contentsline {subsection}{\numberline {7.21}pretty.h}{79}
\contentsline {subsection}{\numberline {7.22}pretty.c}{80}
\contentsline {subsection}{\numberline {7.23}main.c}{87}
\contentsline {subsection}{\numberline {7.24}Makefile}{88}
\contentsline {subsection}{\numberline {7.25}dangeling\_else\_test.raj}{88}
\contentsline {subsection}{\numberline {7.26}dangeling\_else\_test.raj}{89}
\contentsline {subsection}{\numberline {7.27}comments\_test.raj}{89}
\contentsline {subsection}{\numberline {7.28}indentation\_test.raj}{90}
\contentsline {subsection}{\numberline {7.29}precedence\_test.raj}{90}
\contentsline {subsection}{\numberline {7.30}nested\_functions\_test.raj}{91}
\contentsline {subsection}{\numberline {7.31}function\_id\_test.raj}{91}
\contentsline {subsection}{\numberline {7.32}nested\_statements\_test.raj}{92}
